package day005.stagetest;

import java.util.Random;

public class Test02 {
    public static void main(String[] args) {
        Random rand = new Random();
        int a = rand.nextInt(10, 100);
        int count = 0;
        System.out.println(a + "-100间的奇数为：");
        for (int i = a; i <= 100; i++) {
            if (i % 2 != 0) {
                System.out.print(i + " ");
                count++;
            }
        }
        System.out.println();
        System.out.println(a + "-100共有" + count + "个奇数");
    }
}
